using System.Reactive.Subjects;

namespace TfL
{
    /// <summary>
    /// interface for polling the tfl api
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ITrackerNetFeedPoller<T>
    {
        ISubject<T> Poll();
        ISubject<T> Poll(System.Threading.CancellationToken token, int period);
    }
}